<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="/WEB-INF/tld/c-1_0-rt.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fmt-1_0-rt.tld" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>显示文章列表</title>
</head>

<body>
<a href="#">新留言</a>
<div>
	<ul>
    	<c:forEach var="ai" items="${dataList}">
        	<li>
        	<c:out value="${ai.title}" />　(<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${ai.addDate}" />)
        	电话：<c:out value="${ai.telphone}" />
        	<c:if test="${ai.audit == 1 }">已审核</c:if><c:if test="${ai.audit != 1 }">未审核</c:if>
        	</li>
        </c:forEach>
    </ul>
</div>
<div>
	<form action="addMessage.shtml" method="post">
		标题：<input type="text" name="title"/>
		内容：<input type="text" name="content"/>
		电话：<input type="text" name="telphone"/>
		<input type="submit" value="提交"/>
	</form>
</div>
</body>
</html>